package com.fps.web.service;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import com.fpswork.core.exception.exception.BusinessException;
import com.fpswork.core.model.PageEntity;
import com.fps.web.model.BaseUser;
/**
 * 用户管理
 */
public interface BaseUserService {

	/**
	 * 用户登陆验证业务逻辑处理,
	 * @param sysUserInfo
	 * @return Map：code:0:登陆成功,-1001:会员不存在,-1002:密码错误,page:登录成功进入的首页面
	 * @throws ServiceException
	 */
	public Map<String, String> loginCheck(BaseUser baseUser,HttpServletRequest request)  throws BusinessException;
	
	
	
	/**
	 * 获取所有用户
	 * @param sysUserInfo
	 * @return Map:用户数据
	 * @throws ServiceException
	 */
	public PageEntity queryUserList(PageEntity pageEntity)  throws BusinessException;
	/**
	 * 根据主键获取用户
	 * @param sysUserInfo
	 * @return Map:用户数据
	 * @throws ServiceException
	 */
	public BaseUser queryUserByID(String id)  throws BusinessException;
	/**
	 * 保存用户
	 * @param sysUserInfo
	 * @return Map:用户数据
	 * @throws ServiceException
	 */
	public BaseUser addUser(BaseUser baseUser)  throws BusinessException;
	
	/**
	 * 删除用户
	 * @param sysUserInfo
	 * @return Map:用户数据
	 * @throws ServiceException
	 */
	public Boolean deleteUser(BaseUser baseUser)  throws BusinessException;
	
	
}
